// ReportTempletUpdateHandler.h: interface for the ReportTempletUpdateHandler class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_REPORTTEMPLETUPDATEHANDLER_H__5B28F8AF_2D72_4414_8AAC_9D8FD7B63C4E__INCLUDED_)
#define AFX_REPORTTEMPLETUPDATEHANDLER_H__5B28F8AF_2D72_4414_8AAC_9D8FD7B63C4E__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "BaseRequestHandler.h"

struct ReportTempletUpdateStruct;
struct ReportTempletItem;

class ReportTempletUpdateHandler : public BaseRequestHandler
{
public:
	ReportTempletUpdateHandler(const Packet& packet, HANDLE hClient);
	virtual ~ReportTempletUpdateHandler();

	virtual bool Prehandling() {return true;}
	virtual bool IsFurtherHandlingNeeded() {return true;}

protected:
	virtual int Handling();

	int AddReportTemplet(const ReportTempletItem& rti);
	int ModifyReportTemplet(const ReportTempletItem& rti);
	int DeleteReportTemplet(const ReportTempletItem& rti);
	int RenameReportTemplet(const ReportTempletItem& rti);
};

#endif // !defined(AFX_REPORTTEMPLETUPDATEHANDLER_H__5B28F8AF_2D72_4414_8AAC_9D8FD7B63C4E__INCLUDED_)
